import moment from "moment";
export function dateTime(v) {//处理时间
    return moment(v * 1000).format('YYYY-MM-DD h:mm:ss a');
};
//处理权限等级的过滤器
export function jurisdiction(v) {
    let result = '';
    switch (v) {
        case '0': result = '一级'; break;
        case '1': result = '二级'; break;
        case '2': result = '三级'; break;
        default: result = '没有要满足的级别';

    }

    return result
}
